<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link href="{%$URL%}style/webstyle.css" rel="stylesheet" type="text/css" />
<title>{%$web_name%}</title>

</head>
<link href="{%$URL%}mx.ico" rel="shortcut icon"/>
<script src="{%$URL%}jquery-1.7.1.min.js"></script>
<script src="{%$URL%}defalut.js"></script>
<script type="text/javascript">
//验证密码和确认密码
function check_psw(){
  var psw = $("#lc_password").val();
  var psw2 = $("#lc_password2").val();
  if(psw){
    if(psw!==psw2){
      $("#reset_psw2").text("亲，两次输入的密码不相同！");
    }else{
      $("#reset_psw2").text("亲，输入正确！");
      }
    }
  }
function check_reset(){
  var user = $("#user").val();
  var key = $("#key").val();
  var email = $("#email").val();
  var pwd = $("#lc_password").val();
  var rpwd = $("#lc_password2").val();
  var yzm = $("#yzm").val();
  if(!user || !key || !email){
    msg_tips("亲，链接已失效！","index.php?p=user");
    return false;
    }
  if(!pwd){
    msg_tips("亲，请输入重置密码！","");
    return false;
    }
  if(!rpwd){
    msg_tips("亲，请输入确认密码！！","");
    return false;
    }
  if(pwd !== rpwd){
    msg_tips("亲，两次密码输入不相同！","");
    return false;
    }
  if(!yzm){
    msg_tips("亲，验证码不能为空！","");
    return false;
    }
  }
</script>
<body>
  <!--头部 开始-->
{%include file='head.htm'%}
<!--头部 结束--> 
<!--内容 开始-->
<div class="nr" style="padding:0 0 40px 0;">
  <div class="main_title"> <span class="main_t">会员重置密码</span><br>
    <!-- Wonderful Case  --></div>
  <div style="padding:40px 0 0 0;">
    <div class="main_l">
      <div class="main_l_title"><span style="font-size:22px;">栏目分类</span><br>
        <!-- Wonderful case --></div>
      <div class="main_l_list">
        <ul>
          <li><a href="index.php?p=user">会员信息</a></li>
          <li><a href="index.php?p=shoppingcart_list">购物车</a></li>
          <li><a href="index.php?p=dingdan_list">订单管理</a></li>
          <li><a href="index.php?p=user_zt">高级会员</a></li>
          <li><a href="index.php?a=user_exit">退出会员</a></li>
        </ul>
      </div>
    </div>
    <div class="main_r">
    <div class="main_ly">
      <ul>
        <form action="index.php?a=user_resetpwd" method="post" onSubmit="return check_reset()">
        <input name="user" id="user" type="hidden" value="{%$smarty.get.user%}">
        <input name="key" id="key" type="hidden" value="{%$smarty.get.key%}">
        <input name="email" id="email" type="hidden" value="{%$smarty.get.email%}">
          <li>
            <div class="main_ly_t1" style="width:90px;">密&nbsp;&nbsp;&nbsp;&nbsp;码：</div>
            <input name="lc_password" type="password" required id="lc_password" class="main_bd">
            <div class="cl"></div>
          </li>
          <li>
            <div class="main_ly_t1" style="width:90px;">确认密码：</div>
            <input name="lc_password2" type="password" required id="lc_password2" onBlur="check_psw()" class="main_bd">
            <div class="cl"></div>
          </li>
          <li>
            <div class="main_ly_t1">验证码：</div>
            <input type="text" name="yzm" id="yzm" class="main_bd2">
            <a style="float:left;margin:0 0 0 10px;"><img src="index.php?a=imagecode" alt="看不清楚，换一张" align="absmiddle" style="cursor:pointer" onClick="newgdcode(this,this.src)"></a>
            <div class="cl"></div>
          </li>
          <li>
            <input type="submit" id="tijiao" style="margin-left:30px; height:35px; width:100px; border:0px; font-size:16px; background:#487CE1; color:#FFF;" value="重置密码">
          </li>
          </form>
        </ul>
  </div>
  </div>
</div>
    <!-- right -->
    <div class="clear"></div>
  </div>
  {%include file="bot.htm"%}</div>
<!-- body --> 
<br>
<br>
</body>
</html>
